#include "parser.h"

/** Static member fields.
 * The first one is particularly ugly, but the only way around it seems to be
 * the complete elimination of Numbers (outside derived classes, that is)
 */
Number      *Parser::NOTANUMBER = const_cast<Number *>(&Number::NOTANUMBER);
char         Parser::NOTANOPERATOR = '\0';
// here, should add dash (-) as well, but it is an operator at the same time --
// not a good idea.
const string Parser::WHITESPACE = " \t";

/** The default constructor.
 * No parser should have this name. Of course.
 * But setting it here so that it's easier to catch than an accidental empty 
 * string.
 */
Parser::Parser() {
  name = "<unnamed>";
}

/** Getter function for name. */
const string Parser::getName() {
  return name;
}
